#include "stdafx.h"
#include "Dictionary.h"

//Constructor
Dictionary::Dictionary(){}
Dictionary::~Dictionary(){}
Dictionary::Dictionary(int rows, int columns, int index)
{
	this->spectrum_rows = rows;
	this->spectrum_columns = columns;

	this->frequency_rows = rows;
	this->frequency_columns = index;

	Spectrum = new double*[rows];
	for(int i = 0; i < rows; i++)
		Spectrum[i] = new double[columns];

	for (int i = 0; i < rows; i++)
		for (int j = 0; j < columns; j++)
			Spectrum[i][j] = 0;

	this->Frequency = new double*[rows];
	for (int i = 0; i < rows; i++)
		this->Frequency[i] = new double[index];
	this->Time		= new double[rows];
}

void Dictionary::set_spectrum_rows(int rows)
{
	this->spectrum_rows = rows;
}

void Dictionary::set_spectrum_columns(int columns)
{
	this->spectrum_columns = columns;
}

void Dictionary::set_frequency_columns(int columns)
{
	this->frequency_columns = columns;
}

void Dictionary::set_frequency_rows(int rows)
{
	this->frequency_rows = rows;
}

int Dictionary::get_spectrum_rows()
{
	return spectrum_rows;
}

int Dictionary::get_spectrum_columns()
{
	return spectrum_columns;
}

int Dictionary::get_frequency_rows()
{
	return frequency_rows;
}

int Dictionary::get_frequency_columns()
{
	return frequency_columns;
}
